package edu.uow.devdocs
/**
 * The Phase entity.
 *
 * @author    
 *
 *
 */
class Phase {
	static auditable = true
    static mapping = {
         table 'PHASE'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'PHASE_ID'
		 id generator: 'sequence', params:[sequence:'PHASE_SEQ']
		 sort displayOrder:'asc'
		 
    }
    String description
    Boolean activeFlag = 1
    Integer displayOrder

    static constraints = {
        description(size: 0..255)
        activeFlag(nullable: false)
        displayOrder(nullable: true)
    }
    String toString() {
        return "${description}" 
    }
}
